﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI
{
    public partial class CtrAdmin : UserControl
    {
        public CtrAdmin()
        {
            InitializeComponent();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            NguoiDungForm form = new NguoiDungForm();
            form.StartPosition = FormStartPosition.CenterScreen;
            form.Show();
            
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            NhomTinForm form = new NhomTinForm();
            form.StartPosition = FormStartPosition.CenterScreen;
            form.Show();
        }

        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            TinRaoVatForm form = new TinRaoVatForm();
            form.PhanQuyen = "Administrator";
            form.StartPosition = FormStartPosition.CenterScreen;
            form.Show();
        }

        private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {

            KhuVucForm form = new KhuVucForm();
            form.StartPosition = FormStartPosition.CenterScreen;
            form.Show();
        }

        private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {

            QuanLyNhomForm form = new QuanLyNhomForm();
            form.StartPosition = FormStartPosition.CenterScreen;
            form.Show();
        }
    }
}
